tools/xenstore: fix unsigned < 0 compare in xenstore_control
authorJuergen Gross <jgross@suse.com>
Fri, 22 Jan 2021 06:08:57 +0000 (07:08 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Jan 2021 11:35:18 +0000 (11:35 +0000)
commita37b50c28e6749186011b333787b1ec4fe21415f
treeb43741f0cb95340ae92c358516c14f20a145c272
parentd7356c57ec71b5d5caeac0e3ce23ea14494d060f
tools/xenstore: fix unsigned < 0 compare in xenstore_control

Commit 7f97193e6aa858df ("tools/xenstore: add live update command to
xenstore-control") introduced testing an unsigned value to be less
than 0. Fix that.

Fixes: 7f97193e6aa858df ("tools/xenstore: add live update command to xenstore-control")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/xenstore/xenstore_control.c